import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/axios'
Vue.config.productionTip = false





import { Button, Search, Tabs, Tab, NavBar, Form, Field, Tabbar, TabbarItem, CellGroup, Cell, Image, Grid, GridItem, Toast, Popup, Uploader, Picker, Icon, List, PullRefresh, DatetimePicker, Dialog } from 'vant';
// 组件全局挂载的方案
Vue.use(Button);
Vue.use(Search);
Vue.use(Tabs);
Vue.use(Tab);
Vue.use(NavBar);
Vue.use(Form);
Vue.use(Field);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(CellGroup);
Vue.use(Icon);
Vue.use(DatetimePicker);

Vue.use(Cell);

Vue.use(Image);

Vue.use(Grid);
Vue.use(Dialog);
Vue.use(GridItem);
Vue.use(Toast);
Vue.use(Uploader);
Vue.use(Popup);
Vue.use(Picker);
Vue.use(List);
Vue.use(PullRefresh);










// 请求拦截器 在每次请求之前看是否有token值
// axios.interceptors.request.use(config => {

//   config.headers.Authorization = window.localStorage.getItem('token')

//   return config
// })


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
